﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="grades.aspx.vb" Inherits="BMI.greades" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    Put your marks here <asp:TextBox ID="tb_marks" runat="server"></asp:TextBox>
    <asp:RangeValidator ID="vld_marks" runat="server" ControlToValidate="tb_marks" 
        ErrorMessage="Please enter a value between 0 to 100" MaximumValue="100" 
        MinimumValue="0" Type="Double"></asp:RangeValidator>
    <asp:RequiredFieldValidator ID="req_marks" runat="server" 
        ControlToValidate="tb_marks" ErrorMessage="This field cannot be left blank." 
        ForeColor="Red"></asp:RequiredFieldValidator>
    <br /><br />
    <asp:Button ID="btn_getGrade" runat="server" Text="Calculate Grade" /><br /><br />
    <asp:Label ID="lbl_grade" runat="server" Text=""></asp:Label>
</asp:Content>
